package com.woniuxy.service;

import com.woniuxy.entity.KillBook;
import com.woniuxy.util.ResponseData;

public interface SecKillService {

    /**
     * 添加秒杀商品
     * @param killBook
     * @return
     */
    ResponseData<?> addKillBook(KillBook killBook);

    /**
     * 查询秒杀书籍
     */
    ResponseData<?> queryKillBook();

    /**
     * 查询秒杀书籍详情
     * @param bookId
     * @return
     */
    ResponseData<?> queryDetail(Integer bookId);

    /**
     * 开始秒杀
     * @param bookId
     * @return
     */
    ResponseData<?> startKill(Integer bookId);
}
